package com.chinasoft.tw.service.cth;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class ChengTingHui implements TrueWord {

    String name;
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public ChengTingHui() {
        this.name = "程庭晖";
        wordList.add("看到这句话祝你天天开心 ！");
        wordList.add("看到这句话祝你早日暴富 ！");
        wordList.add("看到这句话祝你心想事成 ！");
    }

    @Override
    public Info getTrueWord() {
        int index = random.nextInt(wordList.size());
        Info info = new Info(name, wordList.get(index));

        return info;
    }
}
